package com.kool.leitu.bean.vo;

import com.kool.leitu.bean.ColumnsBean;
import lombok.Data;

/**
 * @description:
 * @author: tianhe
 * @create: 2019/02/12 19:20
 */
@Data
public class ColumnsVo extends ColumnsBean {
    private String javaType;
    private String upJavaName;
    private String lowJavaName;
    private boolean isString;

    public ColumnsVo() {

    }

    public ColumnsVo(ColumnsBean value) {
        this.tableCatalog = value.getTableCatalog();
        this.tableSchema = value.getTableSchema();
        this.tableName = value.getTableName();
        this.columnName = value.getColumnName();
        this.ordinalPosition = value.getOrdinalPosition();
        this.columnDefault = value.getColumnDefault();
        this.isNullable = value.getIsNullable();
        this.dataType = value.getDataType();
        this.characterMaximumLength = value.getCharacterMaximumLength();
        this.characterOctetLength = value.getCharacterOctetLength();
        this.numericPrecision = value.getNumericPrecision();
        this.numericScale = value.getNumericScale();
        this.characterSetName = value.getCharacterSetName();
        this.collationName = value.getCollationName();
        this.columnType = value.getColumnType();
        this.columnKey = value.getColumnKey();
        this.extra = value.getExtra();
        this.privileges = value.getPrivileges();
        this.columnComment = value.getColumnComment();
    }

}
